package com.boot.common.constants;

/**
 * @author Cheng JiYe
 * @description:
 * @date 2020/10/2 20:08
 */
public enum  Code {

    //请求成功状态码
    ReqSuccess(200, "执行成功"),
    // 系统状态码
    ReqFailure(444, "执行失败"),
    // 常见错误码
    ErrorSystem(500, "系统繁忙，请稍后重试！"),
            ;

    private int code;
    private String msg;

    Code(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
